class RegionModel {
  int regionId;
  String psgcCode;
  String regionName;
  String code;
  String countryId;

  RegionModel(
      {this.regionId,
      this.psgcCode,
      this.regionName,
      this.code,
      this.countryId});

  RegionModel.fromJson(Map<String, dynamic> json) {
    regionId = json['region_id'];
    psgcCode = json['psgc_code'];
    regionName = json['region_name'];
    code = json['code'];
    countryId = json['country_id'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['region_id'] = this.regionId;
    data['psgc_code'] = this.psgcCode;
    data['region_name'] = this.regionName;
    data['code'] = this.code;
    data['country_id'] = this.countryId;
    return data;
  }
}

class ProvinceModel {
  int provinceId;
  String provinceName;
  String psgcCode;
  String regionCode;
  String provinceCode;

  ProvinceModel(
      {this.provinceId,
      this.provinceName,
      this.psgcCode,
      this.regionCode,
      this.provinceCode});

  ProvinceModel.fromJson(Map<String, dynamic> json) {
    provinceId = json['province_id'];
    provinceName = json['province_name'];
    psgcCode = json['psgc_code'];
    regionCode = json['region_code'];
    provinceCode = json['province_code'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['province_id'] = this.provinceId;
    data['province_name'] = this.provinceName;
    data['psgc_code'] = this.psgcCode;
    data['region_code'] = this.regionCode;
    data['province_code'] = this.provinceCode;
    return data;
  }
}

class CityModel {
  int cityMunicipalityId;
  String cityName;
  String psgcCode;
  String provinceCode;
  String cityCode;

  CityModel(
      {this.cityMunicipalityId,
      this.cityName,
      this.psgcCode,
      this.provinceCode,
      this.cityCode});

  CityModel.fromJson(Map<String, dynamic> json) {
    cityMunicipalityId = json['city_municipality_id'];
    cityName = json['city_name'];
    psgcCode = json['psgc_code'];
    provinceCode = json['province_code'];
    cityCode = json['city_code'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['city_municipality_id'] = this.cityMunicipalityId;
    data['city_name'] = this.cityName;
    data['psgc_code'] = this.psgcCode;
    data['province_code'] = this.provinceCode;
    data['city_code'] = this.cityCode;
    return data;
  }
}

class AddressModel {
  String address;
  int addressId;
  String phone;
  String recipient;

  bool select = false;

  AddressModel({this.address, this.addressId, this.phone, this.recipient});

  AddressModel.fromJson(Map<String, dynamic> json) {
    address = json['address'];
    addressId = json['addressId'];
    phone = json['phone'];
    recipient = json['recipient'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['address'] = this.address;
    data['addressId'] = this.addressId;
    data['phone'] = this.phone;
    data['recipient'] = this.recipient;
    return data;
  }
}